package edu.service;

import java.util.List;

import edu.dao.FormDAO;
import edu.model.Form;

public class FormService {
	
	private FormDAO formDAO = null;
	

	public FormDAO getFormDAO() {
		return formDAO;
	}

	public void setFormDAO(FormDAO PatientDAO) {
		this.formDAO = PatientDAO;
	}
	
	public Form getFormById(Integer id){
		return formDAO.findById(id);
	}
	
	@SuppressWarnings("unchecked")
	public List<Form> getAllForm(){
		return formDAO.findAll();
	}
}
